<div class="wrap">
  <div class="wrap-content"  *ngIf="conentFlag" >
    <div *ngFor="let item of inspectionList; let i = index">
      <div [ngClass]="{'m-t-20':i>0}">
        <p-panel headerClass="bg-none" [showScroll]="false">
          <p-header>
            <div class="text-right p-6-0 h-48">
                <span class="border-l-1a8fe8 p-l-8 pull-left m-t-8">
                    第{{item.sortNum}}次日常巡检
                    <span class="panel-status-success">{{storage.dicFilter('inspectionStatus',item.isFinish)}}</span>
                </span>
                <!--<button pButton type="button" (click)="punishments(item.id);" class="btn btn-primary m-l-8" label="发起处罚"></button>-->
            </div>
          </p-header>

          <div class="table-row">
            <div class="table-cell text-left width-125  color-b1b1b1">
              开始日期：
            </div>
            <div class="table-cell">
              {{item.startTime}}
            </div>
          </div>
          <div class="table-row">
            <div class="table-cell text-left width-125  color-b1b1b1">
              完成时间：
            </div>
            <div class="table-cell">
              {{item.finishTime}}
            </div>
          </div>

          <div class="table-row">
            <div class="table-cell text-left width-125  color-b1b1b1">
              目前工地进度：
            </div>
            <div class="table-cell">
              {{item.processName}}
            </div>
          </div>

          <div class="table-row">
            <div class="table-cell text-left width-125  color-b1b1b1">
              竣工延期风险：
            </div>
            <div class="table-cell">
              {{storage.dicFilter('contractCompleteStatus',item.completeDelayRisk)}}
            </div>
          </div>

          <div class="table-row">
            <div class="table-cell text-left width-125  color-b1b1b1">
              现场文明施工：
            </div>
            <div class="table-cell">
              <div class="ui-g" >
                <div *ngFor="let i of item.civilizationConstruction_redis">
                  <div class="p-15">
                    <!-- <p-label [label]='i.name' [active]="i.flag" styleColor="#1a91eb" [showClose]="false"></p-label> -->
                    <p-label [label]='i.name'  [icon]="i.flag?'fa-check':''" [showClose]="i.flag" styleColor="#1a91eb" [showClose]="false"></p-label>
                  </div>
                </div>
              </div>
            </div>
          </div>

          <div class="table-row">
            <div class="table-cell text-left width-125  color-b1b1b1">
              成品保护标识：
            </div>
            <div class="table-cell">
              <div class="ui-g" >
                <div *ngFor="let i of item.productProtectTag_redis">
                  <div class="p-15">
                    <p-label [label]='i.name'  [icon]="i.flag?'fa-check':''" [showClose]="i.flag" styleColor="#1a91eb" [showClose]="false"></p-label>
                  </div>
                </div>
              </div>
            </div>
          </div>

          <div class="table-row">
            <div class="table-cell text-left width-125  color-b1b1b1">
              施工安全：
            </div>
            <div class="table-cell">
              <div class="ui-g" >
                <div *ngFor="let i of item.constructionSafety_redis">
                  <div class="p-15">
                    <p-label [label]='i.name'  [icon]="i.flag?'fa-check':''" [showClose]="i.flag" styleColor="#1a91eb" [showClose]="false"></p-label>
                  </div>
                </div>
              </div>
            </div>
          </div>

          <div class="table-row">
            <div class="table-cell text-left width-125  color-b1b1b1">
              水电工艺规范：
            </div>
            <div class="table-cell">
              <div class="ui-g" >
                <div *ngFor="let i of item['technologystandard'].waterElectricityStandard_redis">
                  <div class="p-15">
                    <p-label [label]='i.name'  [icon]="i.flag?'fa-check':''" [showClose]="i.flag"styleColor="#1a91eb" [showClose]="false"></p-label>
                  </div>
                </div>
              </div>
            </div>
          </div>

          <div class="table-row">
            <div class="table-cell text-left width-125  color-b1b1b1">
              瓦工工艺规范：
            </div>
            <div class="table-cell">
              <div class="ui-g" >
                <div *ngFor="let i of item['technologystandard'].bricklayersStandard_redis">
                  <div class="p-15">
                    <p-label [label]='i.name'  [icon]="i.flag?'fa-check':''" [showClose]="i.flag" styleColor="#1a91eb" [showClose]="false"></p-label>
                  </div>
                </div>
              </div>
            </div>
          </div>

          <div class="table-row">
            <div class="table-cell text-left width-125  color-b1b1b1">
              木工工艺规范：
            </div>
            <div class="table-cell">
              <div class="ui-g" >
                <div *ngFor="let i of item['technologystandard'].carpentersStandard_redis">
                  <div class="p-15">
                    <p-label [label]='i.name'  [icon]="i.flag?'fa-check':''" [showClose]="i.flag" styleColor="#1a91eb" [showClose]="false"></p-label>
                  </div>
                </div>
              </div>
            </div>
          </div>

          <div class="table-row">
            <div class="table-cell text-left width-125  color-b1b1b1">
              油工工艺规范：
            </div>
            <div class="table-cell">
              <div class="ui-g" >
                <div *ngFor="let i of item['technologystandard'].oilworkerStandard_redis">
                  <div class="p-15">
                    <p-label [label]='i.name'  [icon]="i.flag?'fa-check':''" [showClose]="i.flag" styleColor="#1a91eb" [showClose]="false"></p-label>
                  </div>
                </div>
              </div>
            </div>
          </div>

          <div class="table-row">
            <div class="table-cell text-left  width-125 color-b1b1b1" style="vertical-align:top">现场图片：</div>
            <div class="table-cell">
              <div class="pull-left load-img" *ngIf="item.managerPhotoPcUrls">
                <p-lightboxfile styleClass="inline-block" [images]="imgUrlData(item.managerPhotoPcUrls)" [showDelete]="false"></p-lightboxfile>
              </div>
            </div>
          </div>

          <div class="table-row">
            <div class="table-cell text-left  color-b1b1b1 width-125">工人实名制：</div>
          </div>
          <div>
            <div class="table-cell width-800">
              <p-doubleTable [titleWidth]="140" [style]="{width:'1070px'}" [rowClos]="workerRealNameCol" [value]="item.workerRealName ? item.workerRealName : {}">
              </p-doubleTable>
            </div>
          </div>

          <div class="table-row">
            <div class="table-cell text-left p-l-25 color-b1b1b1 width-125">木作安装复核：</div>
          </div>
          <div>
            <div class="table-cell width-800">
              <p-doubleTable [titleWidth]="140" [style]="{width:'1070px'}" [value]="item.woodWorkCheck ? item.woodWorkCheck : {}" [rowClos]="carpentryInstallReCheckCol">
              </p-doubleTable>
            </div>
          </div>

          <div class="table-row">
            <div class="table-cell text-left width-125 p-l-25 color-b1b1b1">整改：</div>
          </div>
          <div></div>
          <div class="table-row">
            <div class="table-cell text-left table-max">
              <app-div-table [tableHead]="modifyRecordCol" [searchData]="businessOpportunityId" [values]="item.modifyRecordList"></app-div-table>
            </div>
          </div>
          <div class="table-row">
            <div class="table-cell text-left width-125 p-l-25 color-b1b1b1">处罚：</div>
          </div>
          <div></div>
          <div class="table-row">
            <div class="table-cell text-left table-max">
              <!-- <p-dataTable [value]="item.deliveryResultList" [headerCheckboxToggleAllPages]="true">
                <p-column *ngFor="let col of reportResultHead" [field]='col.field' [header]='col.header' [hidden]="col.hidden" [style]="{'width':col.width}">
                  <ng-template let-index="rowIndex" let-data="rowData" pTemplate="body" *ngIf="col.dic">
                    <span *ngIf="col.field == 'reportResult'"> {{data.reportResult}} </span>
                    <span *ngIf="col.field == 'creater'">{{data[col.field]}} &nbsp; {{storage.dicFilter(col.dic,data['userType'])}} </span>
                  </ng-template>
                  <ng-template let-index="rowIndex" let-data="rowData" pTemplate="body" *ngIf="col.tem">
                    <div *ngIf="col.field === 'sortNum'">
                      {{index+1}}
                    </div>
                  </ng-template>
                </p-column>
              </p-dataTable> -->
              <app-div-table [tableHead]="punishCol" [values]="item.punishrecordList"></app-div-table>
            </div>
          </div>
        </p-panel>
      </div>
    </div>
  </div>
  <div class="wrap-content-none" *ngIf="conentNoFlag">
      <div class="bg-centent"></div>
      <p class="text-center">暂无巡检记录</p>
    </div>
</div>

<!--&lt;!&ndash; 处罚弹窗组件 &ndash;&gt;-->
<!--<app-list-punish-dialog *ngIf="isPunishShow" [data]="punishmentsData" [isShow]="isPunishShow" (changeIsShow)="changePunishShow($event)"></app-list-punish-dialog>-->
<!--&lt;!&ndash; 处罚弹窗组件end &ndash;&gt;-->
